package com.home.webapp.base.service.impl;

import com.home.common.framework.core.service.impl.BaseServiceImpl;
import com.home.webapp.base.entity.BaseRole;
import com.home.webapp.base.mapper.BaseRoleMapper;
import com.home.webapp.base.service.BaseRoleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * Description: 角色 serviceImpl
 * Created by 王大宸 on 2020-10-05 23:28:38
 * Created with IntelliJ IDEA.
 */
@Service
public class BaseRoleServiceImpl extends BaseServiceImpl<BaseRoleMapper, BaseRole, String> implements BaseRoleService {
    private static final Logger logger = LoggerFactory.getLogger(BaseRoleServiceImpl.class);

    /***
     * 功能说明：分页
     *
     * @author 王大宸
     * @date 2020/11/25 23:00
     * @param params
     * @return com.home.common.framework.msg.PageResponse
     */
//    @Override
//    public PageResponse page(Map<String, Object> params) throws BizException {
//        QueryParams queryParams = new QueryParams(params);
//        Page<BaseRole> page = PageHelper.startPage(queryParams.getPage(), queryParams.getLimit());
//        List<BaseRole> list = baseMapper.page(queryParams);
//        return PageResponse.ok(page.getTotal(), list);
//    }
}
